﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
using DatabaseInterface;


namespace Invent
{
    public partial class frmProjectsForm : Form
    {
        private int CurrentProject;

        public frmProjectsForm(DBInterface db, bool isEdit)
        {
            InitializeComponent();
           
           
        }

        ~frmProjectsForm()
        {
 
        }
        private void btnNewProject_Click(object sender, EventArgs e)
        {
            frmAddProject ap = new frmAddProject();
            ap.ShowDialog();
            if (ap.ProjectName != "")
            {
               
            }
        }

        private void bthProjectOrders_Click(object sender, EventArgs e)
        {
            frmOrdersForm orders = new frmOrdersForm();
            
            orders.ShowDialog();
        }

        private void grdProjects_SelectionChanged(object sender, EventArgs e)
        {
            if (grdProjects.RowCount > 0)
            CurrentProject = (int)grdProjects.SelectedRows[0].Cells["Column_Id"].Value;
        }
    }
}
